package com.antu.first.dto;

import com.antu.first.bean.Merchant;
import com.antu.first.enums.MerchantStateEnum;

import java.util.List;

/**
 * Created by Administrator on 2018/3/7.
 */
public class MerchantOperationExecution {

    private int state;

    private String stateInfo;

    private int count;

    private Merchant merchant;

    private List<Merchant> merchants;

    public MerchantOperationExecution(MerchantStateEnum stateEnum) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
    }

    public MerchantOperationExecution(MerchantStateEnum stateEnum, Merchant merchant) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.merchant = merchant;
    }

    public MerchantOperationExecution(MerchantStateEnum stateEnum, List<Merchant> merchants) {
        this.state = stateEnum.getState();
        this.stateInfo = stateEnum.getStateInfo();
        this.merchants = merchants;
    }

    public int getState() {
        return state;
    }

    public void setState(int state) {
        this.state = state;
    }

    public String getStateInfo() {
        return stateInfo;
    }

    public void setStateInfo(String stateInfo) {
        this.stateInfo = stateInfo;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    public Merchant getMerchant() {
        return merchant;
    }

    public void setMerchant(Merchant merchant) {
        this.merchant = merchant;
    }

    public List<Merchant> getMerchants() {
        return merchants;
    }

    public void setMerchants(List<Merchant> merchants) {
        this.merchants = merchants;
    }
}
